/*
** epur.c for minishell2 in /home/lingla_j/work/tutorat/env
** 
** Made by julien linglain
** Login   <lingla_j@epitech.net>
** 
** Started on  Sat Mar  3 14:13:40 2012 julien linglain
** Last update Sat Mar  3 14:16:31 2012 julien linglain
*/

#include "mysh.h"

int	check_space(char *s)
{
  int	i;
  int	space;
  int	len;

  i = 0;
  space = 0;
  len = my_strlen(s);
  while (s[i] != '\0')
    {
      if (s[i] == ' ' || s[i] == '\t')
	space++;
      i++;
    }
  if (space == len)
    return (1);
  else
    return (2);
  return (0);
}
